package cn.ym.mall.dao;

import cn.ym.mall.entity.ConsigneeInformation;

import java.util.List;

public interface ConsigneeInformationDao {
    /**
     * 增加收件信息表
     * @param consigneeInformation
     * @return
     */
    public int addConsigneeInformation(ConsigneeInformation consigneeInformation);

    /**
     * 修改收件信息表
     * @param consigneeInformation
     * @return
     */
    public int updateConsigneeInformation(ConsigneeInformation consigneeInformation);

    /**
     * 通过地址编号查询收件信息
     * @param cinfoid
     * @return
     */
    public ConsigneeInformation getConsigneeInformationBycinfoid(Integer cinfoid);

    /**
     * 通过cinfoid删除信息
     * @param cinfoid
     * @return
     */
    public int deleteConsigneeInformationByinfoid(Integer cinfoid);

    /**
     * 查询收件信息表
     * @return
     */
    public List<ConsigneeInformation> getAllConsigneeInformation();
}
